<template>
  <a-drawer
    width="35%"
    :label-col="4"
    :title="formTitle"
    :wrapper-col="14"
    :visible="open"
    :body-style="{height:'calc(100vh - 100px)',overflow:'auto'}"
    @close="cancel">
    <a-form-model ref="form" :model="form" :rules="rules">
      <a-form-model-item label="单位加工量" prop="unitProcessVol">
        <a-input type='number' v-model="form.unitProcessVol"   placeholder="请输入单位加工量"/>
      </a-form-model-item>
      <a-form-model-item label="单位工资" prop="unitSalary">
        <a-input type='number' v-model="form.unitSalary" placeholder="请输入单位工资" />
      </a-form-model-item>
      <a-form-model-item label="工序排序" prop="sortNumber">
        <a-input type='number' v-model="form.sortNumber" placeholder="请输入工序排序" />
      </a-form-model-item>
      <div class="bottom-control">
        <a-space>
          <a-button type="primary" @click="submitForm">
            保存
          </a-button>
          <a-button @click="cancel">
            取消
          </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import ProcessForm from './ProcessForm'
export default {
  ...ProcessForm
}
</script>
